// 引入封装好的request
import request  from "@/utils/request";
// 获取所有博客
export const getBlogs = (data)=>{
    return request({
        url:'/blogsys/getblogs',
        method:'POST',
        data
    })
}
// 删除博客
export const delBlog = (data)=>{
    return request({
        url:'/blogsys/delblog',
        method:'POST',
        data
    })
}


// 获取所有被删博客
export const getBlogedApi = (data)=>{
    return request({
        url:'/blogsys/getbloged',
        method:'POST',
        data
    })
}
// 恢复博客
export const resumeBlogApi = (data)=>{
    return request({
        url:'/blogsys/delblog',
        method:'POST',
        data
    })
}
// 恢复博客
export const delBlogedApi = (data)=>{
    return request({
        url:'/blogsys/delbloged',
        method:'POST',
        data
    })
}

// 获取前端展示博客
export const getDisplayBlogsApi = (data)=>{
    return request({
        url:'/blogsys/getdisplayblogs',
        method:'POST',
        data
    })
}


// 搜索博客
export const searchBlogsApi = (data)=>{
    return request({
        url:'/blogsys/queryblog',
        method:'POST',
        data
    })
}

// 删除博客封面
export const delBlogFaceApi = (data)=>{
    return request({
        url:'/upload/delblogfaceload',
        method:'POST',
        data
    })
}
// 发布博客
export const publicBlogApi = (data)=>{
    return request({
        url:'/blogsys/publicblog',
        method:'POST',
        data
    })
}
// 获取单个展示博客
export const displayblogApi = (data)=>{
    return request({
        url:'/blogsys/displayblog',
        method:'POST',
        data
    })
}
// 博客点赞
export const goBlogGoodApi = (data)=>{
    return request({
        url:'/blogsys/gogood',
        method:'POST',
        data
    })
}